package com.myself.community.utils;

/**
 * 常量码
 */
public class Code {
    /**
     * 激活成功
     */
    public static final Integer  ACTIVATION_SUCCESS = 0;

    /**
     * 重复激活
     */
    public static final Integer ACTIVATION_REPEAT = 1;

    /**
     * 激活失败
     */
    public static final Integer ACTIVATION_FAILURE = 2;

    /**
     * 默认状态的登录凭证的超时时间：12小时
     */
    public static final Integer DEFAULT_EXPIRED_SECONDS = 3600 * 12;

    /**
     * 记住状态的登录凭证超时时间：30天
     */
    public static final Integer REMEMBER_EXPIRED_SECONDS = 3600 * 24 * 30;

    public static final Integer ERR = 0; //失败
    public static final Integer OK = 1;  //成功

    /**
     * 实体类型: 帖子
     */
    public static final Integer ENTITY_TYPE_POST = 1;

    /**
     * 实体类型: 评论
     */
    public static final Integer ENTITY_TYPE_COMMENT = 2;

    /**
     * 实体类型: 用户
     */
    public static final Integer ENTITY_TYPE_USER = 3;


    /**
     * 主题: 评论
     */
    public static final String TOPIC_COMMENT = "comment";

    /**
     * 主题: 点赞
     */
    public static final String TOPIC_LIKE = "like";

    /**
     * 主题: 关注
     */
    public static final String TOPIC_FOLLOW = "follow";

    /**
     * 主题： 发帖
     */
    public static final String TOPIC_PUBLISH = "publish";
    /**
     * 主题：删帖
     */
    public static final String TOPIC_DELETE = "delete";

    /**
     * 系统用户ID
     */
    public static final Integer SYSTEM_USER_ID = 1;
}
